<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        html,body,div,ul,ol,p,li,form,h1,h2,h3.h4,h5,h6,a{
            margin: 0;
            padding: 0;
        }
        a {
            text-decoration: none;
        }
        ol,ul,li {
            list-style: none;
        }
        .container{
            padding: 0 280px;
            background-color: #51B7EC;
        }
        .middle{
            width: 100%;
            height: 50px;
            float: left;
        }
        .middle .logo {
            background-image: url("/images/sprite.png");
            background-position: 0 0;
            height: 42px;
            width: 119px;
            margin-top: 4px;
            float: left;
        }
        .middle > .header-info {
            float: right;
            line-height: 50px;
        }
        .middle .header-info li{
            float: left;
        }
        .middle .header-info li.line {
            border-right: 1px solid #e3e3e3;
            margin: 22px 10px 0;
            height: 10px;
        }
        .middle .header-info li a{
            color: #ffffff;
            font-size: 13px;
        }
        .left{
            width: 280px;
            height: 50px;
            float:left;
            margin-left:-100%;
            position: relative;
            left: -280px;
        }
        .right{
            width: 280px;
            height: 50px;
            float: left;
            margin-left: -280px;
            position: relative;
            right: -280px
        }
        .main {
            text-align: center;
            margin-top: 30px;
        }
        .main .main-auth {
            display: inline-block;

            padding-right: 30px;
        }
        .main .main-auth form {
            margin-top: 15px;
        }
        .main .main-auth button {
            border: 0;
            cursor: pointer;
            color: #ffffff;
            font-family: Arial;
            padding: 4px 15px;
            border-radius: 3px;
        }
        .main .main-auth button.accept {
            background-color: #96D196;
        }
        .main .main-auth button.reject {
            background-color: #D9534F;
            margin-left: 15px;
        }
        .main .main-info {
            border-left: solid 1px #e3e3e3;
            padding-left: 30px;
            font-size: 11px;
            font-family: "Microsoft Yahei",Tahoma,sans-serif;
            display: inline-block;
            vertical-align: top;
            text-align: left;
        }
        .main .main-info a {
            color: #51B7EC;
        }
        .main .main-info .info {
            border-bottom: solid 1px #e5e5e5;
            padding: 0 12px 12px 0;
        }
        .main .main-info .third-info {
            padding: 12px 0;
            border-bottom: solid 1px #e5e5e5;
            margin-bottom: 12px;
        }
        .main .main-info .other-info {
            margin-top: 30px;
        }
    </style>
</head>
<body>
<div class="container">
    <div class="middle">
        <h1 class="logo"></h1>
        <div class="header-info">
            <ul>
                <li><a href="#">QQ登录</a></li>
                <li class="line"></li>
                <li><a href="#">授权管理</a></li>
                <li class="line"></li>
                <li><a href="#">申请接入</a></li>
            </ul>
        </div>
    </div>
    <div class="left"></div>
    <div class="right"></div>
    <div style="clear: both;"></div>
</div>
<div class="main">
    <div class="main-auth">
        <img height="60" width="60" th:src="@{${profile}}">
        <!-- /oauth/oauthorize?user_oauth_approval=true&scope.read=false -->
        <form action="/oauth/authorize" method="post">
            <input type="hidden" name="user_oauth_approval" value="true">
            <input type="hidden" th:name="${'scope.' + scope}" id="authentication">
            <button onclick="javascript: document.getElementById('authentication').value = true;" class="accept" >同意</button>
            <button onclick="javascript: document.getElementById('authentication').value = false;" class="reject">拒绝</button>
        </form>
    </div>
    <div class="main-info">
        <p class="info">该网站已有好多人用户使用QQ登录</p>
        <p class="third-info">
            <a href="#">
                <span >
                </span>
                (<span th:text="${company_name}"></span>)
            </a>
            将获得以下权限
        </p>
        <input style="position: relative; top: 3px;" type="checkbox" checked disabled>获得您的昵称、头像、性别
        <p class="other-info">授权后表明你已同意 <a href="#">QQ登录服务协议</a></p>
    </div>
</div>
</body>
</html>